<?php
$_form = array(
	'columns' => array(
		'category_id' => array(
			'options' => $this->util->getForm('Posts', 'post')->getCategoryIdOptions(false)
		),
		'order_by' => array(
			'label' => '排序字段',
			'name' => 'order_by',
			'type' => 'select',
			'options' => array(
				array(
					'value' => 'dt_created',
					'label' => '发表时间',
					'checked' => false,
				),
				array(
					'value' => 'access_count',
					'label' => '访问次数',
					'checked' => false,
				),
				array(
					'value' => 'dt_modify',
					'label' => '修改时间',
					'checked' => false,
				),
			)
		),
		'post_flags'=> array(
			'type' => 'select',
		),
		'post_status'=> array(
			'type' => 'select',
		),
		'__buttons__' => array(
			'name' => 'search',
			'type' => 'submit',
			'value' => '查询',
			'attributes' => array(
				'class' => 'button blue medium bigrounded',
			)
		)
	),
	'form' => $this->util->getForm('Posts', 'post'),
	'data' => $this->data
);

echo $this->getHtml()->openForm($this->util->getUrlByAct(), 'get');
$this->widget('library\widgets\SearchBuilder', $_form);
echo $this->getHtml()->closeForm();
